package com.dony.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dony.system.domain.Tenant;
import com.dony.system.mapper.TenantMapper;
import com.dony.system.service.ITenantService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


@Slf4j
@Service
public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> implements ITenantService {


    @Override
    public List<Tenant> listByParam(Tenant Tenant) {
        return list();
    }

    @Override
    public List<Tenant> listAllTenant() {
        return list(new QueryWrapper<Tenant>().eq("status",true));
    }
}
